package test;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class MyListener implements Listener
{
	public void handleEvent(Event e)
	{
		if(e.button == 1)
		{
			System.out.println("The left button of the mouse double-clicked .");
		}
		else if(e.button == 2)
		{
			System.out.println("The middle button of the mouse double-clicked .");
		}
		else
		{
			System.out.println("The right button of the mouse double-clicked .");
		}
	}
}
